package com.wyh.shiro2_ssm.service.impl;

import com.wyh.shiro2_ssm.mapper.SysPermissionMapper;
import com.wyh.shiro2_ssm.pojo.SysPermission;
import com.wyh.shiro2_ssm.service.SysPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SysPermissionServiceImpl implements SysPermissionService {
    @Autowired
    private SysPermissionMapper permissionMapper;
    @Override
    public List<SysPermission> findPermsByLoginName(String loginName) {
        return permissionMapper.findPermByLoginName(loginName);
    }
}
